package com.yllt4cloud.shangmi.api.feign;

import com.yllt4cloud.common.core.constant.CommonConstants;
import com.yllt4cloud.common.core.constant.SecurityConstants;
import com.yllt4cloud.common.core.util.ResultResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * Created by Administrator on 2019/6/13.
 */
@FeignClient(contextId = "remoteChuQinService", value = CommonConstants.SHANGMI_SERVICE)
public interface RemoteChuQinService {

	@GetMapping("/kaoqin/countChuQin/{kaoqing}")
	ResultResp<Long> countChuQin(@PathVariable("kaoqing") String kaoqing
			, @RequestHeader(SecurityConstants.FROM) String from);

}
